﻿@model HanGu.Entity.Message
@{
    Layout = null;
}
<div class="pageContent">
    <form method="post" action="admin/@ViewData["CurrentController"]/SMS" class="pageForm required-validate"
    onsubmit="return iframeCallback(this, navTabAjaxDone);">
    @Html.ValidationSummary(true)
    <div class="pageFormContent" layouth="56">
        @Html.HiddenFor(model => model.ID)
        @Html.HiddenFor(model => model.Type)
        @Html.Hidden("SMS.MemberID", Model.MemberID)
        @Html.HiddenFor(model=>model.Title)
        @Html.HiddenFor(model=>model.GUID)
        <p style="width:100%;height:60px;">
            <label>
                接收组：</label>
            @Html.TextArea("SMS.Receiver", Model.Receiver, new { @class = "required", style = "width:600px;height:50px" })
            <a class="btnLook" href="admin/Group/Selecter?lookup=SMS" lookupGroup="SMS">选择会员</a>
            @Html.ValidationMessageFor(model => model.Receiver)
        </p>
        <p>
            <label>
                创建时间：</label>
            @Html.TextBoxFor(model => model.CreateTime, new { @Readonly = "true" })
            @Html.ValidationMessageFor(model => model.CreateTime)
        </p>
        <p>
            <label>
                创建者：</label>
            @Html.TextBoxFor(model => model.Creator, new { @Readonly = "true" })
            @Html.ValidationMessageFor(model => model.Creator)
        </p>
        <p style="width: 100%; height: 200px">
            <label>
                内容：</label>
            @Html.TextAreaFor(model => model.Remark, new { @class = "required", @Style = "width:95%;height:200px" })
            @Html.ValidationMessageFor(model => model.Remark)
        </p>
    </div>
    @if (Request["action"] != "view")
    {
    <div class="formBar">
        <ul>
            <li>
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="submit">
                            提交</button></div>
                </div>
            </li>
            <li>
                <div class="button">
                    <div class="buttonContent">
                        <button type="button" class="close">
                            取消</button></div>
                </div>
            </li>
        </ul>
    </div>
    }
    </form>
</div>
